import request from '@/utils/http';

// 邀请码管理列表
export function getList(params) {
	return request({
		url: '/anchor/platform/manager/tdInvitationCode/list',
		method: 'get',
		params
	});
}
// 邀请码详情
export function getDetail(params) {
	return request({
		url: '/anchor/platform/manager/tdInvitationCode/list/detail',
		method: 'get',
		params
	});
}
// 新增修改邀请码
export function addEditInvitationCode(data) {
	return request({
		url: '/anchor/platform/manager/tdInvitationCode/save/or/update',
		method: 'post',
		data
	});
}
// 邀请码作废
export function cancelInvitationCode(data) {
	return request({
		url: '/anchor/platform/manager/tdInvitationCode/cancel',
		method: 'post',
		data
	});
}
// 合作方名称列表
export function getPartnerList(params) {
	return request({
		url: '/common/positionUserSearch/getAllUser',
		method: 'get',
		params
	});
}
